#include<iostream>
#include<conio.h>
#include<stdio.h>

using namespace std;

class CRectangle
{
	int w;
	int h;
public:
	void setValues(int a,int b);
	int area();
};
void CRectangle::setValues(int a,int b)
{
	w = a;
	h = b;
}
int CRectangle::area()
{
	return( w * h );
}
int main()
{
	CRectangle *rectb;
	CRectangle *rectc = new CRectangle();
	rectc->setValues(8,9);
	rectb = rectc;
	cout<<"area b: "<<rectb->area();
	cout<<"\n";
	cout<<"area c: "<<rectc->area();
	getch();
	return 0;
}
